package cn.tedu.csmall.all.adapter;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(
        basePackages = {
                "cn.tedu.csmall.all",
                "cn.tedu.csmall.commons.exception"
        })
//开启dubbo配置注解
@EnableDubbo
public class StockApplication {
    public static void main(String[] args) {
        //args是什么参数 JAVA运行命令 java -jar传递的参数,最终在虚拟机运行时生效
        //java -jar ***.jar
        SpringApplication.run(StockApplication.class, args);
    }
}
